package com.atguigu.array;

public class TestRectangle {
    public static void main(String[] args) {
        Rectangle[] arr = new Rectangle[3];
        arr[0] = new Rectangle(8,6);//向下复制一行的快捷键：Ctrl + D
        arr[1] = new Rectangle(6,3);
        arr[2] = new Rectangle(10,2);

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i].getInfo());
        }
    }
}
